<!--
 * @Description: 楼层标题
 * @Version: 2.0
 * @Autor: Seven
 * @Date: 2020-12-07 14:50:39
 * @LastEditors: Seven
 * @LastEditTime: 2020-12-09 19:29:20
-->
<template>
    <div class="floor-title">
        <div class="j-title" :style="`color:${color}`">
            {{title}}
        </div>
        <div class="subtitle" v-if="subtitle">{{subtitle}}</div>
    </div>
</template>
<script>
export default {
    props:{
       title:{
           type:String,
           default:''
       },
       subtitle:{
           type:String,
           default:''
       },
       color:{
           type:String,
           default:''
       },
    }
}
</script>
<style lang="scss" scoped>
.floor-title{
    display: flex;
    flex-direction: column;
    align-items:center;
    .j-title{
        font-size: 32px;
        color: #000000;
        width: 470px;
        text-align: center;
        background: url('/images/title-bg.png') no-repeat;
        background-size:100%;
        background-position-y:center ;
    }
    .subtitle{
        font-size: 14px;
        color: #66798A;
        margin-top: 10px;
    }
}
@media screen and (max-width: 760px){
    .floor-title {
        .j-title{
            width: 100%;
            background: none;
        }
    }
}
</style>